﻿using Husb.DataUtil;
using System.Data;

namespace CentralOffice.Archive.Data {
    
    
    public partial class PublicDatumDataSet {
        public partial class PublicDatumRow
        {
            #region GenerateFilterExpression
            public string FilterExpression
            {
                get
                {
                    string where = "";
                    //where += DataAccessUtil.GetPartWhereCondition("Id", this, DbType.Guid);
                    where += DataAccessUtil.GetPartWhereCondition("Name", this);
                    where += DataAccessUtil.GetPartWhereCondition("Category", this, DbType.Int32);
                    where += DataAccessUtil.GetPartWhereCondition("Remark", this);
                    where += DataAccessUtil.GetPartWhereCondition("UploadDate", "UploadDateEnd", this);
                    where += DataAccessUtil.GetPartWhereCondition("Attachments", this);
                    where += DataAccessUtil.GetPartWhereCondition("IsDeleted", this);
                    where += DataAccessUtil.GetPartWhereCondition("IsActive", this);
                    //where += DataAccessUtil.GetPartWhereCondition("CreatedTime", "CreatedTimeEnd", this);
                    //where += DataAccessUtil.GetPartWhereCondition("CreatedBy", this, DbType.Guid);
                    //where += DataAccessUtil.GetPartWhereCondition("ModifiedTime", "ModifiedTimeEnd", this);
                    //where += DataAccessUtil.GetPartWhereCondition("LastModifiedBy", this, DbType.Guid);
                    //where += DataAccessUtil.GetPartWhereCondition("Version", this, DbType.Int32);
                    //where += DataAccessUtil.GetPartWhereCondition("Description", this);
                    return where;
                }
            }

            #endregion
        }
    }
}
